/**
 ** This file is part of the qt-opencv-learning project.
 ** Copyright 2021 add358 <add358@gmail.com>.
 **/

#ifndef BASICDRAWING_H
#define BASICDRAWING_H

#include <QWidget>
#include <opencv2/core.hpp>

class BasicDrawing : public QWidget
{
    Q_OBJECT
public:
    explicit BasicDrawing(QWidget *parent = nullptr);

signals:

private:
    QImage atom() const;
    QImage rook() const;

    void ellipse( cv::Mat img, double angle ) const;
    void circle( cv::Mat img, cv::Point center ) const;
    void polygon( cv::Mat img ) const;
    void line( cv::Mat img, cv::Point start, cv::Point end ) const;
};

#endif // BASICDRAWING_H
